const publicPath = process.env.PUBLIC_PATH;

module.exports = {
  publicPath,
  outputDir: 'dist',
  assetsDir: 'assets',
  productionSourceMap: false,
  configureWebpack: {
    // externals: {
    //   'jquery': 'jQuery', // 使用 import $ from 'jquery'
    //   'moment': 'moment',
    // }
  },
  devServer: {
    publicPath,
    port: 5000,
    proxy: {
      '/': {
        target: 'http://192.168.xx.xx',
        ws: false,
        changeOrigin: true
      }
    }
  }
}
